#ifndef _TUMORES_
#define _TUMORES_

#define NUMBER_THREADS 4
#define NUMBER_BUFFERS 2024

/* número de consumidores para cada thread */
#define NUMBER_CONSUMERS 2
#define SIZE_SEGMENT (NUMBER_BUFFERS/NUMBER_CONSUMERS)

#include "main.h"
#include "list.h"
#include "hash.h"

typedef struct {
    float x, y, z;
} element;

typedef struct {
    sem_t semSon, mutexsBuffer, semFather;
    list *pLists[NUMBER_BUFFERS]; /* ponteiro para as listas */
    sem_t exit;
    int nBuffer;
    unsigned int sPosition;
} parThreads;

int tumors(FILE *);

#endif

